package com.zhouxiao.multithreading.kfc;

/**
 * @author 周明阳
 * mail:gqzmy@outlook.com
 * 时间:2018-03-13 16:58
 */

public class Customers extends Thread {
    Kfc kfc;

    public Customers(Kfc kfc) {
        this.kfc = kfc;
    }

    @Override
    public void run() {
        int size = (int) (Math.random() * 5);
        while (true) {
            kfc.consu(size);
        }
    }
}
